﻿<%@ Page Language="C#" MasterPageFile="../main.master" Inherits="VioletDevelopmentLaboratory.Net.Web.Configuration.VWebConfigManagerPage" %>

<script runat="server">
	protected void HttpRuntimeDetailsView_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e)
	{
		ShowAlert_DetailsView_ItemUpdated(e);
	}
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="BodyContentPlaceHolder" runat="server">

	<h2>HttpRuntime</h2>

	<div>
		<asp:ObjectDataSource ID="HttpRuntimeDetailsViewDataSource" runat="server" 
			SelectMethod="GetHttpRuntime" 
			TypeName="VioletDevelopmentLaboratory.Net.Web.Configuration.HttpRuntimeSectionManager" 
			UpdateMethod="Modify">
			<UpdateParameters>
				<asp:Parameter Name="apartmentThreading" Type="Boolean" />
				<asp:Parameter Name="appRequestQueueLimit" Type="Int32" />
				<asp:Parameter Name="delayNotificationTimeout" Type="Object" />
				<asp:Parameter Name="enable" Type="Boolean" />
				<asp:Parameter Name="enableHeaderChecking" Type="Boolean" />
				<asp:Parameter Name="enableKernelOutputCache" Type="Boolean" />
				<asp:Parameter Name="enableVersionHeader" Type="Boolean" />
				<asp:Parameter Name="executionTimeout" Type="Object" />
				<asp:Parameter Name="maxRequestLength" Type="Int32" />
				<asp:Parameter Name="maxWaitChangeNotification" Type="Int32" />
				<asp:Parameter Name="minFreeThreads" Type="Int32" />
				<asp:Parameter Name="minLocalRequestFreeThreads" Type="Int32" />
				<asp:Parameter Name="requestLengthDiskThreshold" Type="Int32" />
				<asp:Parameter Name="requireRootedSaveAsPath" Type="Boolean" />
				<asp:Parameter Name="sendCacheControlHeader" Type="Boolean" />
				<asp:Parameter Name="shutdownTimeout" Type="Object" />
				<asp:Parameter Name="useFullyQualifiedRedirectUrl" Type="Boolean" />
				<asp:Parameter Name="waitChangeNotification" Type="Int32" />
			</UpdateParameters>
		</asp:ObjectDataSource>
		<fieldset>
			<asp:DetailsView ID="HttpRuntimeDetailsView" runat="server" 
				AutoGenerateRows="False" CellPadding="5" 
				DataSourceID="HttpRuntimeDetailsViewDataSource" DefaultMode="Edit" 
				onitemupdated="HttpRuntimeDetailsView_ItemUpdated">
				<Fields>
					<asp:CheckBoxField DataField="ApartmentThreading" HeaderText="ApartmentThreading" 
						SortExpression="ApartmentThreading" />
					<asp:BoundField DataField="AppRequestQueueLimit" 
						HeaderText="AppRequestQueueLimit" 
						SortExpression="AppRequestQueueLimit" />
					<asp:BoundField DataField="DelayNotificationTimeout" HeaderText="DelayNotificationTimeout" 
						SortExpression="DelayNotificationTimeout" />
					<asp:CheckBoxField DataField="Enable" 
						HeaderText="Enable" 
						SortExpression="Enable" />
					<asp:CheckBoxField DataField="EnableHeaderChecking" 
						HeaderText="EnableHeaderChecking" SortExpression="EnableHeaderChecking" />
					<asp:CheckBoxField DataField="EnableKernelOutputCache" 
						HeaderText="EnableKernelOutputCache" SortExpression="EnableKernelOutputCache" />
					<asp:CheckBoxField DataField="EnableVersionHeader" 
						HeaderText="EnableVersionHeader" 
						SortExpression="EnableVersionHeader" />
					<asp:BoundField DataField="ExecutionTimeout" HeaderText="ExecutionTimeout" 
						SortExpression="ExecutionTimeout" />
					<asp:BoundField DataField="MaxRequestLength" HeaderText="MaxRequestLength" 
						SortExpression="MaxRequestLength" />
					<asp:BoundField DataField="MaxWaitChangeNotification" 
						HeaderText="MaxWaitChangeNotification" 
						SortExpression="MaxWaitChangeNotification" />
					<asp:BoundField DataField="MinFreeThreads" HeaderText="MinFreeThreads" 
						SortExpression="MinFreeThreads" />
					<asp:BoundField DataField="MinLocalRequestFreeThreads" 
						HeaderText="MinLocalRequestFreeThreads" 
						SortExpression="MinLocalRequestFreeThreads" />
					<asp:BoundField DataField="RequestLengthDiskThreshold" 
						HeaderText="RequestLengthDiskThreshold" 
						SortExpression="RequestLengthDiskThreshold" />
					<asp:CheckBoxField DataField="RequireRootedSaveAsPath" 
						HeaderText="RequireRootedSaveAsPath" SortExpression="RequireRootedSaveAsPath" />
					<asp:CheckBoxField DataField="SendCacheControlHeader" 
						HeaderText="SendCacheControlHeader" SortExpression="SendCacheControlHeader" />
					<asp:BoundField DataField="ShutdownTimeout" HeaderText="ShutdownTimeout" 
						SortExpression="ShutdownTimeout" />
					<asp:CheckBoxField DataField="UseFullyQualifiedRedirectUrl" 
						HeaderText="UseFullyQualifiedRedirectUrl" 
						SortExpression="UseFullyQualifiedRedirectUrl" />
					<asp:BoundField DataField="WaitChangeNotification" 
						HeaderText="WaitChangeNotification" SortExpression="WaitChangeNotification" />
					<asp:CommandField ButtonType="Button" ShowCancelButton="False" 
						ShowEditButton="True" />
				</Fields>
			</asp:DetailsView>
		</fieldset>
	</div>
</asp:Content>